<template>
  <el-dialog title="视频展示" :fullscreen="dialogFullscree" :visible.sync="dialogVisible" :close-on-click-modal="false"
    width="60%" class="showDialogClass">
    <el-row :gutter="20">
      <el-col :span="5">
        <div class="grid-content bg-purple"></div>
      </el-col>
      <el-col :span="14">
        <video :src="videoSrc" controls="" style="width:100%" />
        <h1>{{ textTitle }}</h1>
        <p style="font-size:15px">简介：{{ description }}</p>
        <br/>
        <p style="color:#96a5b4;">标签：{{ textLabel }} &emsp;</p>
      </el-col>
      <el-col :span="5">
        <div class="grid-content bg-purple"></div>
      </el-col>
    </el-row>

    <span slot="footer" class="dialog-footer">
      <el-button @click="dialogVisible = false"> 取消 </el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  name: `detailVideo`,
  data() {
    return {
      dialogFullscree: false, //是否全屏展示dialog
      dialogVisible: false,
      videoSrc: ``,
      textTitle: ``,
      textLabel: ``,
      description: ``,
    }
  },
  methods: {
    init(row) {
      this.dialogVisible = true;
      this.videoSrc = row.textVideo
      this.textLabel = row.textLabel
      this.textTitle = row.textTitle
      this.description = row.description;
    },
  },
}
</script>

<style scoped lang="scss">
>>>.el-dialog {
  width: 100% !important;
  height: 100% !important;
}

.el-col {
  border-radius: 4px;
}

.bg-purple {
  background: #fff;
}

.grid-content {
  border-radius: 4px;
  min-height: 36px;
}

.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
</style>
